<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<a th:href="@{/forward}">转发</a>
<a th:href="@{/redirect}">重定向</a>

<form th:action="@{/user}" method="post">
    <!--隐藏域，让form表单发送put请求，如果要发送delete请求时，value写delete就行-->
    <input type="hidden" name="_method" value="put">
    <input type="text" name="name" placeholder="name">
    <input type="text" name="age" placeholder="age"/>
    <input type="submit" value="提交">
</form>
</body>
</html>